package com.seu.project.seuquiz.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.seu.project.seuquiz.model.dto.contest.ContestQueryRequest;
import com.seu.project.seuquiz.model.entity.Contest;

import java.util.Date;

/**
* @author lenovo
* @description 针对表【contest(竞赛)】的数据库操作Service
* @createDate 2023-07-15 13:47:58
*/
public interface ContestService extends IService<Contest> {

    /**
     * 根据查询参数构造queryWrapper
     * @param request
     * @return
     */
    QueryWrapper<Contest> getQueryWrapper(ContestQueryRequest request);

    long contestAdd(String contestName, Date startTime, Date endTime, Integer answerTimes, Integer time, String questionNum, String questionList);
}
